<?php

/**
 * 进程
*/

$process = new swoole_process(function($pro){
	$pro->write('hello wold');
	$pro->exec('/usr/local/php/bin/php',[__DIR__.'/../server/http_server.php']);
},true);

$pid = $process->start();
echo $pid.PHP_EOL;
$process->read();

swoole_process::wait();